home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / CIncludes / QD3DString.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-12  |  2.7 KB  |  103 lines  |  [TEXT/MPS ]

  1. /******************************************************************************
  2.  **                                                                             **
  3.  **     Module:        QD3DString.h                                              **
  4.  **                                                                          **
  5.  **                                                                          **
  6.  **     Purpose:                                                                **
  7.  **                                                                          **
  8.  **                                                                          **
  9.  **                                                                          **
  10.  **     Copyright (C) 1994-1997 Apple Computer, Inc. All rights reserved.     **
  11.  **                                                                          **
  12.  **                                                                          **
  13.  *****************************************************************************/
  14. #ifndef QD3DString_h
  15. #define QD3DString_h
  16.  
  17. #include "QD3D.h"
  18.  
  19. #if defined(PRAGMA_ONCE) && PRAGMA_ONCE
  20.     #pragma once
  21. #endif  /*  PRAGMA_ONCE  */
  22.  
  23. #if defined(OS_MACINTOSH) && OS_MACINTOSH
  24.  
  25. #if defined(__xlc__) || defined(__XLC121__)
  26.     #pragma options enum=int
  27.     #pragma options align=power
  28. #elif defined(__MWERKS__)
  29.     #pragma enumsalwaysint on
  30.     #pragma options align=native
  31. #elif defined(__MRC__) || defined(__SC__)
  32.     #if __option(pack_enums)
  33.         #define PRAGMA_ENUM_RESET_QD3DSTRING 1
  34.     #endif
  35.     #pragma options(!pack_enums)
  36.     #pragma options align=power
  37. #endif
  38.  
  39. #endif  /* OS_MACINTOSH */
  40.  
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif /*  __cplusplus  */
  44.  
  45.  
  46. /******************************************************************************
  47.  **                                                                             **
  48.  **                                String Routines                                 **
  49.  **                                                                             **
  50.  *****************************************************************************/
  51.  
  52. QD3D_EXPORT TQ3ObjectType QD3D_CALL Q3String_GetType(
  53.     TQ3StringObject        stringObj);
  54.  
  55.  
  56. /******************************************************************************
  57.  **                                                                             **
  58.  **                        C String Routines                                     **
  59.  **                                                                             **
  60.  *****************************************************************************/
  61.  
  62. QD3D_EXPORT TQ3StringObject QD3D_CALL Q3CString_New(
  63.     const char                *string);
  64.  
  65. QD3D_EXPORT TQ3Status QD3D_CALL Q3CString_GetLength(
  66.     TQ3StringObject            stringObj,
  67.     unsigned long            *length);
  68.  
  69. QD3D_EXPORT TQ3Status QD3D_CALL Q3CString_SetString(
  70.     TQ3StringObject            stringObj,
  71.     const char                *string);
  72.  
  73. QD3D_EXPORT TQ3Status QD3D_CALL Q3CString_GetString(
  74.     TQ3StringObject            stringObj,
  75.     char                    **string);
  76.  
  77. QD3D_EXPORT TQ3Status QD3D_CALL Q3CString_EmptyData(
  78.     char                    **string);
  79.  
  80. #ifdef __cplusplus
  81. }
  82. #endif /*  __cplusplus  */
  83.  
  84. #if defined(OS_MACINTOSH) && OS_MACINTOSH
  85.  
  86. #if defined(__xlc__) || defined(__XLC121__)
  87.     #pragma options enum=reset
  88.     #pragma options align=reset
  89. #elif defined(__MWERKS__)
  90.     #pragma enumsalwaysint reset
  91.     #pragma options align=reset
  92. #elif defined(__MRC__) || defined(__SC__)
  93.     #if PRAGMA_ENUM_RESET_QD3DSTRING
  94.         #pragma options(pack_enums)
  95.         #undef PRAGMA_ENUM_RESET_QD3DSTRING
  96.     #endif
  97.     #pragma options align=reset
  98. #endif
  99.  
  100. #endif  /* OS_MACINTOSH */
  101.  
  102. #endif  /*  QD3DString_h  */
  103.